<?php
namespace App\Http\Controllers\Admin;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;

class Login extends Controller
{
    use \App\Traits\SessionTrait;
    public function login(Request $request)
    {
        if ($this->sessionReturnUserPhone()) {
            return redirect('/user');
        }
        $viewData = ['seo' => $this->returnSeoInfo('tanwin_index'),'selectedMenu'=>'index'
      ];
        return view('admin/login', $viewData);
    }

    public function regist(Request $request)
    {
        $viewData = ['seo' => $this->returnSeoInfo('tanwin_index')];
        return view('admin/regist', $viewData);
    }

    public function forgetPwd(Request $request)
    {
        $viewData = ['seo' => $this->returnSeoInfo('tanwin_index')];
        return view('admin/forget_pwd', $viewData);
    }

}
